package com.zhou.jiancai.holder;

import android.support.v4.view.ViewPager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.zhou.jiancai.R;

import static com.zhou.jiancai.fragment.tablayoutFragment.RecommendFragment.HEADER;


/**
 * Created by Administrator on 2017/3/30.
 */

public class RecycleViewHolder extends RecyclerView.ViewHolder {

    public TextView textView_left;
    public TextView textView_right;
    public ImageView iv;

    public RecycleViewHolder(View itemView ,int viewType) {
        super(itemView);
        if (viewType  ==HEADER){
          //  initviepager
         iv=   (ImageView) itemView.findViewById(R.id.imageview);

        }else{
            textView_left = (TextView) itemView.findViewById(R.id.product_recycle_item_textview_left);
            textView_right = (TextView) itemView.findViewById(R.id.product_recycle_item_textview_right);
        }

    }
}
